package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.IViewsInfoBiz;
import com.yc.rh.dao.IViewsInfoDao;
import com.yc.rh.entities.ViewsInfo;

public class ViewsInfoBizImpl implements IViewsInfoBiz{
	private IViewsInfoDao viewsInfoDao;
	
	public void setViewsInfoDao(IViewsInfoDao viewsInfoDao) {
		this.viewsInfoDao = viewsInfoDao;
	}

	@Override
	public int addMovie(ViewsInfo vi) {
		return viewsInfoDao.addMovie(vi);
	}

	@Override
	public List<ViewsInfo> find(Integer pageNo, Integer pageSize) {
		return viewsInfoDao.find(pageNo, pageSize);
	}

	@Override
	public int getTotal() {
		return viewsInfoDao.getTotal();
	}

	@Override
	public int updateInfo(ViewsInfo bfi) {
		return viewsInfoDao.updateInfo(bfi);
	}

	@Override
	public int delInfo(String smid) {
		return viewsInfoDao.delInfo(smid);
	}

	@Override
	public ViewsInfo findBySmdate(String smdate) {
		return viewsInfoDao.findBySmdate(smdate);
	}
}
